﻿@model qltscd.Models.BaseClient.DanhMucNuocSanXuat
@{
    ViewBag.Title = "SuaNuocSanXuat";
    Layout = "~/Views/Shared/Modules/_LayoutDanhMucNhapLieu.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script>
    function submitTaoNuocSanXuat(kieu) {
        document.getElementById("kieu").value = kieu;
        document.forms["TaoNuocSanXuat"].submit();
    }
</script>

@using (Html.BeginForm("Create", "DanhMucNuocSanXuat", FormMethod.Post, new { @id = "TaoNuocSanXuat" }))
{
    @Html.ValidationSummary(true);
    @Html.HiddenFor(o => o.IdentityNuocSanXuat);
    <input type="hidden" value="0" name="kieu" id="kieu"/>                                           
    <fieldset>
    <legend>Danh Mục Nước Sản Xuất</legend>
     <table border="0" width="98%" cellpadding="10px">
     <tr>
    <td style="margin-left: 10px;width:50%" class="label_col">
        Mã nước sản xuất
    </td>
    <td>
        @Html.TextBoxFor(Model => Model.MaNuocSanXuat, new { @style = "width:98%; " })
        
    </td>
    </tr>
     <tr>
    <td style="margin-left: 10px;width:50%" class="label_col">
        Tên nước sản xuất
    </td>
    <td>
        @Html.TextBoxFor(Model => Model.TenNuocSanXuat, new { @style = "width:98%; " })

    </td>
    </tr>
    </table>
    @*<p>
            <input type="submit" value="Create" />
        </p>*@
    </fieldset>
    <div class="divButton">
            <input type="submit" value="Lưu" class="button"  />&nbsp;
            <input type="reset" value="Nhập lại" class="button" />&nbsp;
            @Html.ActionLink("Thoát", "Index", null, new { @class = "button" })
        </div>
}
<div class="errBlock">
        @Html.ValidationMessageFor(Model => Model.MaNuocSanXuat, "", new { @style = "display:block" })
        
                        @ViewData[qltscd.Contansts.SessionConstants.ERROR_MESSAGE]
                        <br />
                   @Html.ValidationMessageFor(Model => Model.TenNuocSanXuat, "", new { @style = "display:block" })</div>
